package com.flurry.android;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

final class dc extends al
{
  dc(Context paramContext, String paramString)
  {
    this.cD = dw.e(paramContext, paramString);
    this.cE = "registeredDirtyObjectsTable";
  }

  public final int r(String paramString)
  {
    Cursor localCursor = this.cD.getReadableDatabase().query(this.cE, null, "objectsId='" + paramString + "'", null, null, null, "objectsId ASC, julianday(timestamp)");
    if (localCursor.moveToFirst())
      return localCursor.getInt(localCursor.getColumnIndex("value"));
    return -1;
  }

  public final void readAll()
  {
    Cursor localCursor = this.cD.getReadableDatabase().query(this.cE, null, null, null, null, null, "objectsId ASC, julianday(timestamp)");
    if (localCursor.moveToFirst())
    {
      int i = localCursor.getColumnIndex("objectsId");
      int j = localCursor.getColumnIndex("value");
      do
        Log.w("CacheDirtyOperationsDB", "id = " + localCursor.getString(i) + ", oper_status = " + localCursor.getInt(j));
      while (localCursor.moveToNext());
    }
    while (true)
    {
      localCursor.close();
      return;
      Log.w("CacheDirtyOperationsDB", "TABLE IS EMPTY");
    }
  }

  public final void s(String paramString)
  {
    this.cD.getWritableDatabase().delete(this.cE, "objectsId='" + paramString + "'", null);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.dc
 * JD-Core Version:    0.6.2
 */